package com.collabscm.md.base.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.collabscm.pf.model.DomainObject;

/**
 * 合作关系
 * 
 * @author Zeng Raoxing
 */
@Entity
@Table(name = "t_md_partner_link", catalog = "collabscm")
public class PartnerLink extends DomainObject {
	private static final long serialVersionUID = 1L;
	
	// Fields
	/**ID*/
	private Long linkId;
	/**甲方组织*/
	private Long aOrganId;
	/**乙方组织*/
	private Long bOrganId;
	/**所属组ID*/
	private Long groupId;
	/**关联类型*/
	private Long linkCategory;

	@Id
	@Column(name = "Link_ID", unique = true, nullable = false, precision = 12, scale = 0)
	public Long getLinkId() {
		return this.linkId;
	}

	public void setLinkId(Long linkId) {
		this.linkId = linkId;
	}

	@Column(name = "A_Organ_ID", precision = 12, scale = 0)
	public Long getAOrganId() {
		return this.aOrganId;
	}

	public void setAOrganId(Long aOrganId) {
		this.aOrganId = aOrganId;
	}

	@Column(name = "B_Organ_ID", precision = 12, scale = 0)
	public Long getBOrganId() {
		return this.bOrganId;
	}

	public void setBOrganId(Long bOrganId) {
		this.bOrganId = bOrganId;
	}

	@Column(name = "Group_Id", nullable = false, precision = 12, scale = 0)
	public Long getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	@Column(name = "Link_Category", precision = 2, scale = 0)
	public Long getLinkCategory() {
		return this.linkCategory;
	}

	public void setLinkCategory(Long linkCategory) {
		this.linkCategory = linkCategory;
	}

}